<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        $(function{
            //被卷去的头部scrollTop() /被卷去的左侧scrollLeft()
            //页面滚动事件
            $(window).scroll(function(){
                //头部
                $(document).scrollTop();
                //可以设置
                $(document).scrollTop(100);


            })
        })
    </script>
</body>
</html>